selection
Type
keyword
Summary
The selection is a reference to the currently selected text.
Syntax
the selection
selection()
Description
Use the selection keyword to get the currently selected text or to replace the selection.
Certain commands--in particular, the cut and copy commands--operate on the selected text.
The selection keyword is implemented internally as a function and appears in the functionNames. However, unlike most functions, the selection lets you put things into it, and behaves like a container rather than a function.
Examples
put empty into the selection -- deletes the selection
Related
glossary: keyword, command, function, container
keyword: intersect
message: openField, selectionChanged
property: selectGroupedControls, selected
control structure: function
function: selectedLoc, mouseColor, functionNames
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile